package com.ele.pojo;

import java.util.Objects;

public class ShopCategory {
    private Integer shopCategoryId;
    private String categoryName;

    public Integer getShopCategoryId() {
        return shopCategoryId;
    }

    public void setShopCategoryId(Integer shopCategoryId) {
        this.shopCategoryId = shopCategoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ShopCategory)) return false;
        ShopCategory that = (ShopCategory) o;
        return Objects.equals(getShopCategoryId(), that.getShopCategoryId()) && Objects.equals(getCategoryName(), that.getCategoryName());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getShopCategoryId(), getCategoryName());
    }
}
